package com.sdy.kzyy.biz.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sdy.kzyy.biz.dto.BookingSituationDTO;
import com.sdy.mvc.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: 王越洋
 * @version: v1.0
 * @description: com.sdy.kzyy.biz.mapper
 * @date:2020/3/25
 */
public interface BookingSituationMapper extends BaseMapper<BookingSituationDTO> {
    List<BookingSituationDTO> getBookingPage(@Param("storeCode") String storeCode,
                                             @Param("receiveStatus") Integer receiveStatus,
                                             @Param("name") String name,
                                             @Param("startTime") String startTime,
                                             @Param("endTime") String endTime, Page<BookingSituationDTO> page);

    List<BookingSituationDTO> getBookingPage(@Param("storeCode") String storeCode,
                                             @Param("receiveStatus") Integer receiveStatus,
                                             @Param("name") String name,
                                             @Param("startTime") String startTime,
                                             @Param("endTime") String endTime);

    Integer getBookingSize(@Param("storeCode") String storeCode,
                           @Param("receiveStatus") Integer receiveStatus,
                           @Param("name") String name,
                           @Param("startTime") String startTime,
                           @Param("endTime") String endTime);

}
